package com.hema.auction.http;

import com.hema.auction.utils.Constant;

import static com.hema.auction.utils.Constant.API_HOST;

/**
 * author by john
 */
public class UrlManager {


    /**
     * 发送短信验证码
     */
    public static final String SEND_CODE = API_HOST + "/api/login/get_code";
    /**
     * 验证短信验证码
     */
    public static final String CHECK_CODE = API_HOST + "/api/login/check_code";
    /**
     * 注册
     */
    public static final String REGISTER = API_HOST + "/api/login/register";
    /**
     * 登录
     */
    public static final String LOGIN = API_HOST + "/api/login";
    /**
     * 系统配置项
     */
    public static final String CHECK_VERSION = API_HOST + "/api/sysconfig/get_sys_units";
    public static final String GET_BANNER = API_HOST + "/api/sysconfig/get_banner";
    public static final String GET_SYS_UNITS = API_HOST + "/api/sysconfig/get_sys_units";
    public static final String GET_ALL_TYPES = API_HOST + "/api/goods/get_all_types";
    public static final String GET_GOODS_BY_CATEGORY = API_HOST + "/api/goods/get_goods_by_category";
    public static final String GET_NEWST_ORDERS = API_HOST + "/api/goods/get_newest_orders";
    public static final String GET_HOT_GOODS = API_HOST + "/api/goods/get_hot_goods";
    public static final String GET_SELF_SALES = API_HOST + "/api/order/get_self_sales";
    public static final String COLLECT_GOOD = API_HOST + "/api/personal/collect_good";
    public static final String DEL_COLLECT = API_HOST + "/api/personal/del_collection";
    public static final String GET_USER_BALANCE = API_HOST + "/api/personal/get_user_balance";
    public static final String GET_COLLECTIONS = API_HOST + "/api/personal/get_collections";
    public static final String FILE_UPLOAD = API_HOST + "/api/personal/file_upload";
    public static final String UPDATE_USER_INFO = API_HOST + "/api/personal/update_userinfo";
    public static final String GET_USER_INFO = API_HOST + "/api/personal/get_user_info";
    public static final String GET_AUCTION_LOG = API_HOST + "/api/order/get_auction_log";
    public static final String DO_AUCTION = API_HOST + "/api/order/do_auction";
    public static final String DO_ORDER = API_HOST + "/api/payment/do_order";
//    public static final String DO_ORDER = API_HOST + "/api/payment/do_order_haibei";
    public static final String INDEX = API_HOST + "/api/payment/index";
    public static final String GEET_GOOD_ORDER = API_HOST + "/api/order/get_good_order";
    public static final String GOOD_DETAIL_INFO = API_HOST + "/api/goods/good_detail_info";
    public static final String GET_ORDER_LIST = API_HOST + "/api/order/get_order_list";
    public static final String GET_CJ_ORDERS = API_HOST + "/api/order/get_cj_orders";
    public static final String GET_SHOWS = API_HOST + "/api/show/get_shows";
    public static final String GET_MY_SHOWS = API_HOST + "/api/show/get_my_shows";
    public static final String GET_SHOWS_BY_GOOD = API_HOST + "/api/show/get_shows_by_good_id";
    public static final String GET_OLD_ORDERS = API_HOST + "/api/show/get_old_orders";
    public static final String CREATE_ONE_SHOW = API_HOST + "/api/show/create_one_show";
    public static final String GET_ORDER_BROADCAST = API_HOST + "/api/order/get_order_broadcast";
    public static final String GET_NOTICE = API_HOST + "/api/message/get_notice";
    public static final String GET_USER_MESSAGE = API_HOST + "/api/message/get_user_message";
    public static final String READ_MESSAGE = API_HOST + "/api/message/read_message";
    public static final String GET_NEW_COUNT = API_HOST + "/api/message/get_new_count";
    public static final String EDIT_ADDRESS = API_HOST + "/api/personal/edit_address";
    public static final String GET_ADDRESS = API_HOST + "/api/personal/get_address";
    public static final String ORDER_DETAIL = API_HOST + "/api/order/order_detail";
    public static final String THIRD_LOGIN = API_HOST + "/api/login/third_login";
    public static final String BD_PHONE = API_HOST + "/api/personal/bd_phone";
    public static final String CX_BUY = API_HOST + "/api/order/cx_buy";
    public static final String GET_USER_CENTER = API_HOST + "/api/sysconfig/get_user_center";
    public static final String GET_BACK_SALE = API_HOST + "/api/order/get_back_sale";
    public static final String DO_BACK_AUCTION = API_HOST + "/api/order/do_back_auction";
    public static final String SURE_ORDER = API_HOST + "/api/order/sure_order";
    public static final String GET_PAY_STATUS = API_HOST + "/api/payment/pay_notice_haibei";
    public static final String GET_BALANCE_RECORD = API_HOST + "/api/personal/get_balance_record";
    public static final String GET_IS_SHOW_BACK = API_HOST + "/api/personal/get_is_show_bcak";
    public static final String GET_ONE_NEWEST = API_HOST + "/api/order/get_one_newest";
    public static final String GET_WX_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid="+ Constant.WECHAT_APP_ID+"&secret="+Constant.WECHAT_SECRET+"&code=%s&grant_type=authorization_code";
    public static final String GET_WX_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=%1s&openid=%2s";


    public static final String H5_HELP = API_HOST + "/api/help/help";//帮助
    public static final String H5_GUIDE = API_HOST + "/api/help/guide";//新手指引
    public static final String H5_NEW_GUIDE = API_HOST + "/api/help/new_guide";//新手指引
    public static final String H5_SERVICE = API_HOST + "/api/help/service";//客服中心
    public static final String H5_ABOUT = API_HOST + "/api/help/about";//关于
    public static final String H5_AGREEMENT = API_HOST + "/api/help/service_agreement";//服务协议
    public static final String H5_REGISTER_AGREEMENT = API_HOST + "/api/help/reg_agreement";//注册协议
    public static final String H5_RULE_BZ = API_HOST + "/api/help/rule_bz";// 不包赔竞拍详情规则

}
